﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{
    class animal
    {
        protected string feed;
        protected string walk;
        protected string eat;
        protected string cry;

        public string Feed
        {
            get { return this.feed; }
            set { this.feed = value; }
        }

        public string Walk
        {
            get { return this.walk; }
            set { this.walk = value; }
        }
        public string Eat
        {
            get { return this.eat; }
            set { this.eat = value; }
        }
        public string Cry
        {
            get { return this.cry; }
            set { this.cry = value; }
        }
        public animal()
        {

        }
        public animal(string feed, string walk, string eat, string cry)
        {
            this.feed = feed;
            this.walk = walk;
            this.eat = eat;
            this.cry = cry;
        }
        public void jiao()
        {
            Console.WriteLine("我有脚喔。");
        }
        public void zo()
        {
            Console.WriteLine("我能走喔。");
        }
        public void chi()
        {
            Console.WriteLine("我能吃喔。");
        }
        public virtual void jia()
        {
            Console.WriteLine("我会叫喔。");
        }

    }     
   
}
